/*
 * Copyright (c) 2024 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import path from 'path';

export default class FilePathConstants {
  static readonly OBFUSCATION_FILE_NAME = 'hmrouter-obfuscation-rules.txt';
  static readonly CONSUMER_FILE_NAME = 'hmrouter-consumer-rules.txt';
  static readonly FILE_SEPARATOR = path.sep;
  static readonly DELIMITER = '/';
  static readonly TEMP_ROUTER_MAP_PATH = '../../intermediates/router_map';
  static readonly RAWFILE_DIR = 'src/main/resources/rawfile/hm_router_map.json';
  static readonly ETS_SUFFIX = '.ets';
  static readonly JSON_SUFFIX = '.json';
  static readonly CONFIG_FILE_NAME = 'hmrouter_config.json';
  static readonly PARENT_DELIMITER = '../';
  static readonly CURRENT_DELIMITER = './';
  static readonly OH_MODULE_PATH = 'oh_modules';
  static readonly OH_PACKAGE_FILE_NAME = 'oh-package.json5';
  static readonly LINE_BREAK = '\n';
  static readonly BUILD_PROFILE = 'build-profile.json5';
  static readonly SDK_HOME = 'default/openharmony/ets/oh-uni-package.json';
  static readonly DEFAULT_VALUE = 10;

  // 默认目录相关
  static readonly DEFAULT_SCAN_DIR = 'src/main/ets';
  static readonly DEFAULT_ROUTER_MAP_DIR = 'src/main/resources/base/profile';
  static readonly DEFAULT_BUILD_DIR = 'src/main/ets/generated';
}
